package com.sasis.model;
// Generated 2007-5-22 14:23:20 by Hibernate Tools 3.1.0.beta4

import java.math.BigDecimal;
import java.sql.Date;


/**
 * @struts.form include-all="true" extends="BaseForm"
 * @hibernate.class
 *         table="FLIGHT_ADJUST_COMPENSATION"
 *     
 */

public class FlightAdjustCompensation extends com.sasis.model.BaseObject implements java.io.Serializable {


    // Fields    

    private Integer id;
    private Integer flightInfoId;
    private String standard;
    private Integer cashCount;
    private BigDecimal cashMoney;
    private Integer bookCount;
    private BigDecimal bookMoney;
    private BigDecimal totalMoney;
    private String memo;
    private Integer operator;
    private Date operatDate;


    // Constructors

    /** default constructor */
    public FlightAdjustCompensation() {
    }

	/** minimal constructor */
    public FlightAdjustCompensation(Integer flightInfoId) {
        this.flightInfoId = flightInfoId;
    }
    
    /** full constructor */
    public FlightAdjustCompensation(Integer flightInfoId, String standard, Integer cashCount, BigDecimal cashMoney, Integer bookCount, BigDecimal bookMoney, BigDecimal totalMoney, String memo, Integer operator, Date operatDate) {
        this.flightInfoId = flightInfoId;
        this.standard = standard;
        this.cashCount = cashCount;
        this.cashMoney = cashMoney;
        this.bookCount = bookCount;
        this.bookMoney = bookMoney;
        this.totalMoney = totalMoney;
        this.memo = memo;
        this.operator = operator;
        this.operatDate = operatDate;
    }
    

   
    // Property accessors
    /**       
     *      *            @hibernate.id
     *             generator-class="native"
     *             type="java.lang.Integer"
     *             column="ID"
     *         
     */

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }
    /**       
     *      *            @hibernate.property
     *             column="FLIGHT_INFO_ID"
     *             length="22"
     *             not-null="true"
     *         
     */

    public Integer getFlightInfoId() {
        return this.flightInfoId;
    }
    
    public void setFlightInfoId(Integer flightInfoId) {
        this.flightInfoId = flightInfoId;
    }
    /**       
     *      *            @hibernate.property
     *             column="STANDARD"
     *             length="256"
     *         
     */

    public String getStandard() {
        return this.standard;
    }
    
    public void setStandard(String standard) {
        this.standard = standard;
    }
    /**       
     *      *            @hibernate.property
     *             column="CASH_COUNT"
     *             length="22"
     *         
     */

    public Integer getCashCount() {
        return this.cashCount;
    }
    
    public void setCashCount(Integer cashCount) {
        this.cashCount = cashCount;
    }
    /**       
     *      *            @hibernate.property
     *             column="CASH_MONEY"
     *             length="18"
     *         
     */

    public BigDecimal getCashMoney() {
        return this.cashMoney;
    }
    
    public void setCashMoney(BigDecimal cashMoney) {
        this.cashMoney = cashMoney;
    }
    /**       
     *      *            @hibernate.property
     *             column="BOOK_COUNT"
     *             length="22"
     *         
     */

    public Integer getBookCount() {
        return this.bookCount;
    }
    
    public void setBookCount(Integer bookCount) {
        this.bookCount = bookCount;
    }
    /**       
     *      *            @hibernate.property
     *             column="BOOK_MONEY"
     *             length="18"
     *         
     */

    public BigDecimal getBookMoney() {
        return this.bookMoney;
    }
    
    public void setBookMoney(BigDecimal bookMoney) {
        this.bookMoney = bookMoney;
    }
    /**       
     *      *            @hibernate.property
     *             column="TOTAL_MONEY"
     *             length="18"
     *         
     */

    public BigDecimal getTotalMoney() {
        return this.totalMoney;
    }
    
    public void setTotalMoney(BigDecimal totalMoney) {
        this.totalMoney = totalMoney;
    }
    /**       
     *      *            @hibernate.property
     *             column="MEMO"
     *             length="1024"
     *         
     */

    public String getMemo() {
        return this.memo;
    }
    
    public void setMemo(String memo) {
        this.memo = memo;
    }
    /**       
     *      *            @hibernate.property
     *             column="OPERATOR"
     *             length="22"
     *         
     */

    public Integer getOperator() {
        return this.operator;
    }
    
    public void setOperator(Integer operator) {
        this.operator = operator;
    }
    /**       
     *      *            @hibernate.property
     *             column="OPERAT_DATE"
     *             length="7"
     *         
     */

    public Date getOperatDate() {
        return this.operatDate;
    }
    
    public void setOperatDate(Date operatDate) {
        this.operatDate = operatDate;
    }
   

    /**
     * toString
     * @return String
     */
     public String toString() {
	  StringBuffer buffer = new StringBuffer();

      buffer.append(getClass().getName()).append("@").append(Integer.toHexString(hashCode())).append(" [");
      buffer.append("flightInfoId").append("='").append(getFlightInfoId()).append("' ");			
      buffer.append("standard").append("='").append(getStandard()).append("' ");			
      buffer.append("cashCount").append("='").append(getCashCount()).append("' ");			
      buffer.append("cashMoney").append("='").append(getCashMoney()).append("' ");			
      buffer.append("bookCount").append("='").append(getBookCount()).append("' ");			
      buffer.append("bookMoney").append("='").append(getBookMoney()).append("' ");			
      buffer.append("totalMoney").append("='").append(getTotalMoney()).append("' ");			
      buffer.append("memo").append("='").append(getMemo()).append("' ");			
      buffer.append("operator").append("='").append(getOperator()).append("' ");			
      buffer.append("operatDate").append("='").append(getOperatDate()).append("' ");			
      buffer.append("]");
      
      return buffer.toString();
     }


   public boolean equals(Object other) {
         if ( (this == other ) ) return true;
		 if ( (other == null ) ) return false;
		 if ( !(other instanceof FlightAdjustCompensation) ) return false;
		 FlightAdjustCompensation castOther = ( FlightAdjustCompensation ) other; 
         
		 return ( (this.getId()==castOther.getId()) || ( this.getId()!=null && castOther.getId()!=null && this.getId().equals(castOther.getId()) ) )
 && ( (this.getFlightInfoId()==castOther.getFlightInfoId()) || ( this.getFlightInfoId()!=null && castOther.getFlightInfoId()!=null && this.getFlightInfoId().equals(castOther.getFlightInfoId()) ) )
 && ( (this.getStandard()==castOther.getStandard()) || ( this.getStandard()!=null && castOther.getStandard()!=null && this.getStandard().equals(castOther.getStandard()) ) )
 && ( (this.getCashCount()==castOther.getCashCount()) || ( this.getCashCount()!=null && castOther.getCashCount()!=null && this.getCashCount().equals(castOther.getCashCount()) ) )
 && ( (this.getCashMoney()==castOther.getCashMoney()) || ( this.getCashMoney()!=null && castOther.getCashMoney()!=null && this.getCashMoney().equals(castOther.getCashMoney()) ) )
 && ( (this.getBookCount()==castOther.getBookCount()) || ( this.getBookCount()!=null && castOther.getBookCount()!=null && this.getBookCount().equals(castOther.getBookCount()) ) )
 && ( (this.getBookMoney()==castOther.getBookMoney()) || ( this.getBookMoney()!=null && castOther.getBookMoney()!=null && this.getBookMoney().equals(castOther.getBookMoney()) ) )
 && ( (this.getTotalMoney()==castOther.getTotalMoney()) || ( this.getTotalMoney()!=null && castOther.getTotalMoney()!=null && this.getTotalMoney().equals(castOther.getTotalMoney()) ) )
 && ( (this.getMemo()==castOther.getMemo()) || ( this.getMemo()!=null && castOther.getMemo()!=null && this.getMemo().equals(castOther.getMemo()) ) )
 && ( (this.getOperator()==castOther.getOperator()) || ( this.getOperator()!=null && castOther.getOperator()!=null && this.getOperator().equals(castOther.getOperator()) ) )
 && ( (this.getOperatDate()==castOther.getOperatDate()) || ( this.getOperatDate()!=null && castOther.getOperatDate()!=null && this.getOperatDate().equals(castOther.getOperatDate()) ) );
   }
   
   public int hashCode() {
         int result = 17;
         
         result = 37 * result + ( getId() == null ? 0 : this.getId().hashCode() );
         result = 37 * result + ( getFlightInfoId() == null ? 0 : this.getFlightInfoId().hashCode() );
         result = 37 * result + ( getStandard() == null ? 0 : this.getStandard().hashCode() );
         result = 37 * result + ( getCashCount() == null ? 0 : this.getCashCount().hashCode() );
         result = 37 * result + ( getCashMoney() == null ? 0 : this.getCashMoney().hashCode() );
         result = 37 * result + ( getBookCount() == null ? 0 : this.getBookCount().hashCode() );
         result = 37 * result + ( getBookMoney() == null ? 0 : this.getBookMoney().hashCode() );
         result = 37 * result + ( getTotalMoney() == null ? 0 : this.getTotalMoney().hashCode() );
         result = 37 * result + ( getMemo() == null ? 0 : this.getMemo().hashCode() );
         result = 37 * result + ( getOperator() == null ? 0 : this.getOperator().hashCode() );
         result = 37 * result + ( getOperatDate() == null ? 0 : this.getOperatDate().hashCode() );
         return result;
   }   





}
